<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Index extends MY_Controller {
    
    var $controller_path 	    = '/log/index/';
    var $model_path 		    = 'log/log_model';
    var $lang_path 		    = 'log/log';
	
    function __construct()
    {
		parent::__construct();
		log_message('debug', "log/index Index controller Class Initialized.");
    }
	
    public function index()
    {
        $map_arr = NULL;
        $total_nums = $this->log_model->lists(NULL,$map_arr);
        $ret_arr = $this->get_page($total_nums,$this->get_input("pageNum"),$this->get_input("pageSize"));
        $ret_arr["data"]["content"] = $this->log_model->lists($ret_arr["limit"],$map_arr);
        if($ret_arr["data"]["content"])
        {
        	foreach($ret_arr["data"]["content"] as &$var)
        	{
                //
                $var->createTime = $this->time($var->createTime);
                //$var->createTime = $this->time($var->createTime);
        	}
        }
		$this->api("200",$ret_arr["data"],"");
    }

   
}
